<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      gptfdisk-1.0.5
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;5.&nbsp;File Systems and Disk Management
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="ntfs-3g.html" title=
          "ntfs-3g-2017.3.23">Prev</a>
          <p>
            ntfs-3g-2017.3.23
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="parted.html" title="parted-3.3">Next</a>
          <p>
            parted-3.3
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="gptfdisk" name="gptfdisk"></a>gptfdisk-1.0.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to gptfdisk
        </h2>
        <p>
          The <span class="application">gptfdisk</span> package is a set of
          programs for creation and maintenance of GUID Partition Table (GPT)
          disk drives. A GPT partitioned disk is required for drives greater
          than 2 TB and is a modern replacement for legacy PC-BIOS
          partitioned disk drives that use a Master Boot Record (MBR). The
          main program, <span class="command"><strong>gdisk</strong></span>,
          has an inteface similar to the classic <span class=
          "command"><strong>fdisk</strong></span> program.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/gptfdisk/gptfdisk-1.0.5.tar.gz">
                https://downloads.sourceforge.net/gptfdisk/gptfdisk-1.0.5.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 58dac67c85e46ca87b587231549aefe6
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 204 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 2.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Recommended patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/gptfdisk-1.0.5-convenience-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/gptfdisk-1.0.5-convenience-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          gptfdisk Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../general/popt.html" title=
          "Popt-1.16">popt-1.16</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/icu.html" title=
          "ICU-65.1">ICU-65.1</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/gptdisk">http://wiki.linuxfromscratch.org/blfs/wiki/gptdisk</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of gptfdisk
        </h2>
        <p>
          The <span class="application">gptfdisk</span> package comes with a
          rudimentary <code class="filename">Makefile</code>. First we update
          it to provide a simple build and install interface and fix the
          location of a header file. Install <span class=
          "application">gptfdisk</span> by running the following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../gptfdisk-1.0.5-convenience-1.patch &amp;&amp;
sed -i 's|ncursesw/||' gptcurses.cc &amp;&amp;

make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          test</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>patch -Np1 ...</strong></span>: This
          patch modifies the <code class="filename">Makefile</code> file so
          that it provides an <span class="quote">&ldquo;<span class=
          "quote">install</span>&rdquo;</span> target.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">cgdisk, gdisk, fixparts, and
              sgdisk</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="cgdisk" name="cgdisk"></a><span class=
                    "term"><span class=
                    "command"><strong>cgdisk</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an ncurses-based tool for manipulating GPT partitions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="gdisk" name="gdisk"></a><span class=
                    "term"><span class=
                    "command"><strong>gdisk</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an interactive text-mode tool for manipulating GPT
                    partitions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="fixparts" name="fixparts"></a><span class=
                    "term"><span class=
                    "command"><strong>fixparts</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    repairs mis-formatted MBR based disk partitions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="sgdisk" name="sgdisk"></a><span class=
                    "term"><span class=
                    "command"><strong>sgdisk</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a partition manipulation program for GPT partitions
                    similar to <span class=
                    "command"><strong>sfdisk</strong></span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-19 08:47:37 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="ntfs-3g.html" title=
          "ntfs-3g-2017.3.23">Prev</a>
          <p>
            ntfs-3g-2017.3.23
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="parted.html" title="parted-3.3">Next</a>
          <p>
            parted-3.3
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
